/*
 * @Description: file content
 * @Author: Zt2tzzt
 * @Date: 2021-10-09 09:35:26
 * @LastEditors: Zt2tzzt
 * @LastEditTime: 2021-10-09 09:39:58
 * @LastEditContent: 
 */
// ES6之前拼接字符串和其他标识符
const name = 'zzt'
const age = 18
const height = 1.88

console.log('my name is' + name + ', age is' + age + 'height is' + height)

// ES6提供模板字符串
const message = `my name is ${name}, age is ${age}, height is ${height}`
console.log(message)

const info = `age double is ${age * 2}`
console.log(info)

function doubleAge () {
  return age * 2
}

const info2 = `double age is ${doubleAge()}`
console.log(info2)